﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<CinemaNetwork.Models.FilmByCinema>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ViewCinema
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Фильмы</h2>



     <table >
        <tr>
            <th>
                Фильм
            </th>

            <th>
                Описание
            </th>
 
   
        </tr>
    <% foreach (var item in Model) { %>
        <tr>
             <td>
          <h3> <%= Html.ActionLink(item.Title, "ViewSession", "Home", new { item.filmId,item.cinemaId}, null)%>  </h3>
                <img src="/content/<%= Html.Encode(item.Link) %>" ></img>
            </td>

            <td>
            <big>   
               <%= Html.Encode(item.Description) %></big>
             <br /><br />  Продолжительность: <small><%= Html.Encode(item.Duration) %> </small>
            </td>

     

        </tr>
    <% } %>
    </table>

 

</asp:Content>

